package com.scalar.chiptrack.operations.process;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * Author: Kumar Swamy
 * Date: May 12, 2005
 * Time: 4:15:12 PM
 * To change this template use Options | File Templates.
 */
public class BomPartNumbersAndQuantity {

	private ArrayList  bomPartNumersList    = new ArrayList();
	private String quantity                 = "";
    private int bomProcessStepId            = -1;
    private String bomPartNumber            = null;
    private String vendorName               = null;
    private boolean primaryPartNumber       = false;

    public BomPartNumbersAndQuantity()
    {
        bomProcessStepId    = -1;
        vendorName          = "";
        bomPartNumber       = "";
    }

    public BomPartNumbersAndQuantity(int bomProcessStepId, String quantity )
    {
        this.bomProcessStepId    = bomProcessStepId;
        this.quantity = quantity;
    }

    public ArrayList getBomPartNumersList() {
        return bomPartNumersList;
    }

    public void setBomPartNumersList(ArrayList bomPartNumersList) {
        this.bomPartNumersList = bomPartNumersList;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public int getBomProcessStepId() {
        return bomProcessStepId;
    }

    public void setBomProcessStepId(int bomProcessStepId) {
        this.bomProcessStepId = bomProcessStepId;
    }

    public String getBomPartNumber() {
        return bomPartNumber;
    }

    public void setBomPartNumber(String bomPartNumber) {
        this.bomPartNumber = bomPartNumber;
    }

    public String getVendorName() {
        return vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    public boolean isPrimaryPartNumber() {
        return primaryPartNumber;
    }

    public void setPrimaryPartNumber(boolean primaryPartNumber) {
        this.primaryPartNumber = primaryPartNumber;
    }

    public String toString()
    {
        StringBuffer buf = new StringBuffer();

        buf.append( "Part No. = " ).append( bomPartNumber  ) ;
        buf.append( "Vendor Name = " ).append( vendorName  ) ;
        buf.append( "Qunatity = " ).append( quantity  ) ;

        return buf.toString();
    }
}
